package com.vercer.engine.proxy;

import java.util.Map;

import com.google.apphosting.api.ApiProxy.Environment;

public abstract class DelegatingEnvironment implements Environment
{
	private final Environment delegate;

	public String getAppId()
	{
		return delegate.getAppId();
	}

	public Map<String, Object> getAttributes()
	{
		return delegate.getAttributes();
	}

	public String getAuthDomain()
	{
		return delegate.getAuthDomain();
	}

	public String getEmail()
	{
		return delegate.getEmail();
	}

	@SuppressWarnings("deprecation")
	public String getRequestNamespace()
	{
		return delegate.getRequestNamespace();
	}

	public String getVersionId()
	{
		return delegate.getVersionId();
	}

	public boolean isAdmin()
	{
		return delegate.isAdmin();
	}

	public boolean isLoggedIn()
	{
		return delegate.isLoggedIn();
	}

	public DelegatingEnvironment(Environment delegate)
	{
		this.delegate = delegate;
	}
}
